
<header>
            <div class="container_8 clearfix">
                
               
                <h1 class="grid_1"><?php echo $this->Html->link('ANA', '/jobs/jview'); ?></h1>
                <nav class="grid_5">
                    <ul class="clearfix">
                        

                        <li class="active"><?php echo $this->Html->link('Dashboard', '/jobs/jview'); ?></li>
                        <li><?php echo $this->Html->link('Profile', '/users/profile'); ?></li>

                        <?php 
                            if($this->Session->read("Group.0.name") == "Admin" || $this->Session->read("Group.0.name") == "CaseManager")
                            {
                               // <a href="#" class="has-popupballoon button button-blue"><span class="add"></span>New Task</a>
                            echo
                            //'<li class="action">
//                                
//                                '. $form->button('New Task', $option = array('class' => 'has-popupballoon button button-blue', 'onclick' => 'location.href=\'' . $this->Html->url('/jobs/jadd/') . '\'')) .'
//                            </li>'; 
                            '<li class="fr"><a href="#">Tasks<span class="arrow-down"></span></a>
                            <ul>
                                <li>'. $this->Html->link('New Task', '/jobs/jadd') . '</li>
                                <li>'. $this->Html->link('Tasks List' , '/jobs/jadminlist') .'</li>
                                
                               
                            </ul>
                        </li>';
                            } ?>

                        <?php if($this->Session->read("Group.0.name") == "Admin") {
                        echo
                        '<li class="fr"><a href="#">Administration<span class="arrow-down"></span></a>
                            <ul>
                                <li>'. $this->Html->link('Users', '/users/userlist') . '</li>
                                <li>'. $this->Html->link('Find by Skills' , '/users/searchusers') .'</li>
                                <li>'. $this->Html->link('Find By Availability', '/users/searchavail') .'</li>
                                <li>'. $this->Html->link('Manage Skills', '/skills/slist') .'</li>
                                <li>'. $this->Html->link('Hours Reports', '/jobs/hoursreport') .'</li>
                                <li>'. $this->Html->link('Unfilled Tasks', '/jobs/jadminnonvol') .'</li>
                            </ul>
                        </li>';
                        }
                        ?>
                    

                   </ul>
                </nav>
                
                <?php if($session->check('Auth.User.id')) {
                    echo '<p class="fr">Welcome ' . $this->Session->read("Auth.User.fname"). ' ' . $this->Session->read("Auth.User.lname") . '</p>'; 
                }
                else {
                    echo "Login";
                }
                ?>

            </div>
        </header>